// 判断是否是移动端
export const isMobile = () => {
  const userAgent = navigator.userAgent.toLowerCase()
  const mobileKeywords = ['android', 'iphone', 'ipad', 'ipod', 'windows phone']
  return mobileKeywords.some((keyword) => userAgent.includes(keyword))
}

export const isMobileByWidth = () => {
  console.log(window.innerWidth)
  return document.documentElement.clientWidth < 768
}
